package com.haorui.lygyd.authority.dto;

import com.haorui.base.core.dto.AuthDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Setter;

/**
 * @author 陈刚
 * @version 1.0
 * @project znsm
 * @package com.haorui.znsm.authority.dto
 * @createDate 2018-03-22 14:15
 * @modfiyDate
 * @function
 */
@Data
public class AuthMember implements AuthDto {
    @Setter
    private String id;
    @ApiModelProperty(value = "姓名")
    private String xingMing;
    @ApiModelProperty(value = "手机号码")
    private String shouJiHaoMa;
    @ApiModelProperty(value = "校区ID")
    private String schoolId;

    private String openId;
    private String token;

    @Override
    public String getId() {
        return id;
    }

    @Override
    public String getUserName() {
        return shouJiHaoMa;
    }

    @Override
    public String getRealName() {
        return xingMing;
    }

    @Override
    public String getToken() {
        return token;
    }

    @Override
    public String getType() {
        return "WXUSER";
    }

    @Override
    public String getOrgid() {
        return schoolId;
    }
}
